<template>
    <el-dialog width="50%"
               :visible="noteDescribeVisible" slot="title" :show-close="false">
        <div slot="title" style="margin-bottom: 34px;">
            <span class="labelName" style="color: #333333;font-size: 16px">您的申请单：{{applyNo}}，已提交到OA</span>
            <span class="labelName" style="color: #333333;font-size: 16px">You application form: {{applyNo}} has been submitted to OA</span>
        </div>
        <div>
            <span>是否将本次操作加入常用物料单？</span><br/>
            <span>Whether to add common material list?</span>
        </div>
        <div slot="footer" class="dialog-footer">
            <el-button @click="requestPromptClose">不加入</el-button>
            <el-button type="primary" @click="addCommonMaterial">加入</el-button>
        </div>
    </el-dialog>
</template>
<style scoped>
    .labelName{
        float: right;
        width: 100%;
    }
</style>
<script>

    export default{
        props: {
            noteDescribeVisible: null,
            applyNo: ''
        },
        methods:{
            addCommonMaterial() {  // 加入
                this.$emit('hiddenPromptSubmit');
                this.$emit('showRemarksMode');
            },
            requestPromptClose() { // 关闭弹窗
                this.$emit('submitResetData');
                this.$emit('hiddenPromptSubmit');
            }

        }
    }
</script>
